//Tree help function.

class Tree
{
public:
  Tree(int input):data(input), left(NULL), right(NULL), parent(NULL){}
  Tree *left, *right, *parent;
  int data;
};

void TreeInsert(Tree *&root, int data, Tree *pre);

//prints ascii tree for given Tree structure
void print_ascii_tree(Tree * t);


